﻿namespace DataStructure;

public interface ITMatrix<E> where E : struct
{
    int Cols { get; } //列数
    int Nums { get; set; } //非零元素的个数
    int Rows { get; } //行数

    E[,] SparseMatrix();
    void Clear();
    bool Assign(int i, int j, out E assignedE);
    bool Amend(int i, int j, E newE);

    //ISMatrix<E> Transpose();
    //ISMatrix<E> Add(ISMatrix<E> other);
    //ISMatrix<E> Sub(ISMatrix<E> other); 
}